package com.secsbrain.development.web.dto;

import com.secsbrain.development.biz.constant.TaskStatus;
import com.secsbrain.development.biz.constant.TaskType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel(value = "部署对象")
public class SingleTaskDTO {
    @Min(1)
    @NotNull
	@ApiModelProperty(value = "应用ID",required = true)
	private Long appId;

	@ApiModelProperty(value = "应用名称",required = true)
	private String appName;

	@ApiModelProperty(value = "环境名称",required = true)
    private String env;

	@ApiModelProperty(value = "代码分支",required = true)
	private String gitBranch;

	@ApiModelProperty(value = "是否是k8s环境，默认true",required = true)
	private boolean k8s=true;//是否发k8s

	private Long id;

    private String executorName;
    private Long projectId;
    private String groupName;
    private Integer step;
    private String desc;//发布描述

	public Long getAppId() {
		return appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getGitBranch() {
		return gitBranch;
	}

	public void setGitBranch(String gitBranch) {
		this.gitBranch = gitBranch;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getExecutorName() {
		return executorName;
	}

	public void setExecutorName(String executorName) {
		this.executorName = executorName;
	}

	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Integer getStep() {
		return step;
	}

	public void setStep(Integer step) {
		this.step = step;
	}

	public String getEnv() {
		return env;
	}

	public void setEnv(String env) {
		this.env = env;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public boolean isK8s() {
		return k8s;
	}

	public void setK8s(boolean k8s) {
		this.k8s = k8s;
	}
	
}
